Branchwell

PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Hypnotic / Polar Rolling / martin - neon space ps3 [flexi's moebius transformation vs logarithmic spiral mix].milk

1MILKDROP_PRESET_VERSION=201
2PSVERSION=3
3PSVERSION_WARP=3
4PSVERSION_COMP=3
5[preset00]
6fRating=5.000000
7fGammaAdj=1.980
8fDecay=0.500
9fVideoEchoZoom=1.000
10fVideoEchoAlpha=0.500
11nVideoEchoOrientation=3
12nWaveMode=4
13bAdditiveWaves=1
14bWaveDots=0
15bWaveThick=1
16bModWaveAlphaByVolume=1
17bMaximizeWaveColor=0
18bTexWrap=1
19bDarkenCenter=0
20bRedBlueStereo=0
21bBrighten=0
22bDarken=1
23bSolarize=0
24bInvert=0
25fWaveAlpha=0.001
26fWaveScale=0.527
27fWaveSmoothing=0.450
28fWaveParam=0.000
29fModWaveAlphaStart=0.000
30fModWaveAlphaEnd=1.320
31fWarpAnimSpeed=1.459
32fWarpScale=2.007
33fZoomExponent=1.00000
34fShader=0.000
35zoom=0.99990
36rot=0.00000
37cx=0.500
38cy=0.500
39dx=0.00000
40dy=0.00000
41warp=0.01000
42sx=0.99990
43sy=1.00000
44wave_r=0.800
45wave_g=0.490
46wave_b=1.000
47wave_x=0.500
48wave_y=0.500
49ob_size=0.015
50ob_r=0.000
51ob_g=0.000
52ob_b=1.000
53ob_a=0.000
54ib_size=0.260
55ib_r=0.250
56ib_g=0.250
57ib_b=0.250
58ib_a=0.000
59nMotionVectorsX=64.000
60nMotionVectorsY=48.000
61mv_dx=0.000
62mv_dy=0.000
63mv_l=1.850
64mv_r=0.500
65mv_g=0.500
66mv_b=0.500
67mv_a=0.000
68b1n=0.000
69b2n=0.000
70b3n=0.000
71b1x=1.000
72b2x=1.000
73b3x=1.000
74b1ed=0.000
75wavecode_0_enabled=0
76wavecode_0_samples=282
77wavecode_0_sep=20
78wavecode_0_bSpectrum=0
79wavecode_0_bUseDots=1
80wavecode_0_bDrawThick=0
81wavecode_0_bAdditive=0
82wavecode_0_scaling=7.85800
83wavecode_0_smoothing=0.10000
84wavecode_0_r=0.000
85wavecode_0_g=0.300
86wavecode_0_b=1.000
87wavecode_0_a=0.600
88wave_0_init1=t1 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
89wave_0_init2=t2 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
90wave_0_init3=t3 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
91wave_0_init4=t4 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
92wave_0_init5=t5 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
93wave_0_init6=t6 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
94wave_0_init7=t7 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
95wave_0_init8=t8 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
96wave_0_init9=
97wave_0_per_frame1=t2 = t2 + bass_att;
98wave_0_per_point1=x = int(rand(100))/100;
99wave_0_per_point2=y = int(rand(100))/100;
100wavecode_1_enabled=0
101wavecode_1_samples=512
102wavecode_1_sep=0
103wavecode_1_bSpectrum=0
104wavecode_1_bUseDots=1
105wavecode_1_bDrawThick=1
106wavecode_1_bAdditive=0
107wavecode_1_scaling=0.89152
108wavecode_1_smoothing=0.82000
109wavecode_1_r=1.000
110wavecode_1_g=1.000
111wavecode_1_b=1.000
112wavecode_1_a=0.100
113wave_1_init1=t1 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
114wave_1_init2=t2 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
115wave_1_init3=t3 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
116wave_1_init4=t4 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
117wave_1_init5=t5 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
118wave_1_init6=t6 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
119wave_1_init7=t7 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
120wave_1_init8=t8 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
121wave_1_init9=
122wave_1_per_frame1=tm = time*.1;
123wave_1_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7);
124wave_1_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8);
125wave_1_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1);
126wave_1_per_frame5=
127wave_1_per_frame6=tic = min(time - tin,1);
128wave_1_per_frame7=tin = time;
129wave_1_per_frame8=
130wave_1_per_frame9=tva = (tic*q1*.5);
131wave_1_per_frame10=tvb = (tic*q2*.5);
132wave_1_per_frame11=tvc = (tic*q3*.5);
133wave_1_per_frame12=
134wave_1_per_frame13=q1 = tva;
135wave_1_per_frame14=q2 = tvb;
136wave_1_per_frame15=q3 = tvc;
137wave_1_per_frame16=
138wave_1_per_frame17=sz = .5;
139wave_1_per_frame18=len = q4;
140wave_1_per_frame19=t4 = len;
141wave_1_per_point1=xi = int(rand(100))/100;
142wave_1_per_point2=yi = int(rand(100))/100;
143wave_1_per_point3=
144wave_1_per_point4=x = xi; y = yi;
145wave_1_per_point5=
146wave_1_per_point6=a = q21/15;
147wavecode_2_enabled=0
148wavecode_2_samples=512
149wavecode_2_sep=0
150wavecode_2_bSpectrum=0
151wavecode_2_bUseDots=0
152wavecode_2_bDrawThick=1
153wavecode_2_bAdditive=0
154wavecode_2_scaling=0.89152
155wavecode_2_smoothing=0.82000
156wavecode_2_r=0.000
157wavecode_2_g=0.200
158wavecode_2_b=0.000
159wavecode_2_a=1.000
160wave_2_init1=t1 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
161wave_2_init2=t2 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
162wave_2_init3=t3 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
163wave_2_init4=t4 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
164wave_2_init5=t5 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
165wave_2_init6=t6 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
166wave_2_init7=t7 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
167wave_2_init8=t8 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3;
168wave_2_init9=
169wave_2_per_frame1=tm = time*.1;
170wave_2_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7);
171wave_2_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8);
172wave_2_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1);
173wave_2_per_frame5=
174wave_2_per_frame6=tic = min(time - tin,1);
175wave_2_per_frame7=tin = time;
176wave_2_per_frame8=
177wave_2_per_frame9=tva = (tic*q1*.5);
178wave_2_per_frame10=tvb = (tic*q2*.5);
179wave_2_per_frame11=tvc = (tic*q3*.5);
180wave_2_per_frame12=
181wave_2_per_frame13=q1 = tva;
182wave_2_per_frame14=q2 = tvb;
183wave_2_per_frame15=q3 = tvc;
184wave_2_per_frame16=
185wave_2_per_frame17=sz = .5;
186wave_2_per_frame18=len = 1;
187wave_2_per_frame19=t4 = len;
188wavecode_3_enabled=0
189wavecode_3_samples=512
190wavecode_3_sep=0
191wavecode_3_bSpectrum=1
192wavecode_3_bUseDots=1
193wavecode_3_bDrawThick=0
194wavecode_3_bAdditive=0
195wavecode_3_scaling=1.00000
196wavecode_3_smoothing=0.50000
197wavecode_3_r=1.000
198wavecode_3_g=1.000
199wavecode_3_b=1.000
200wavecode_3_a=1.000
201shapecode_0_enabled=0
202shapecode_0_sides=4
203shapecode_0_additive=1
204shapecode_0_thickOutline=0
205shapecode_0_textured=0
206shapecode_0_num_inst=1
207shapecode_0_x=0.500
208shapecode_0_y=0.500
209shapecode_0_rad=0.04896
210shapecode_0_ang=0.00000
211shapecode_0_tex_ang=1.00531
212shapecode_0_tex_zoom=1.53117
213shapecode_0_r=0.000
214shapecode_0_g=1.000
215shapecode_0_b=1.000
216shapecode_0_a=1.000
217shapecode_0_r2=0.830
218shapecode_0_g2=0.930
219shapecode_0_b2=0.800
220shapecode_0_a2=0.000
221shapecode_0_border_r=1.000
222shapecode_0_border_g=1.000
223shapecode_0_border_b=0.000
224shapecode_0_border_a=0.000
225shape_0_per_frame1=
226shape_0_per_frame2=trel = time/3;
227shape_0_per_frame3=
228shape_0_per_frame4=x = .5+sin(trel*2);
229shape_0_per_frame5=y = .5+cos(trel*1.3);
230shape_0_per_frame6=
231shape_0_per_frame7=
232shape_0_per_frame8=
233shape_0_per_frame9=
234shape_0_per_frame10=rad = .1;
235shape_0_per_frame11=a = .8;
236shapecode_1_enabled=0
237shapecode_1_sides=4
238shapecode_1_additive=0
239shapecode_1_thickOutline=1
240shapecode_1_textured=1
241shapecode_1_num_inst=1
242shapecode_1_x=0.260
243shapecode_1_y=0.200
244shapecode_1_rad=0.39317
245shapecode_1_ang=0.00000
246shapecode_1_tex_ang=0.00000
247shapecode_1_tex_zoom=0.93550
248shapecode_1_r=0.000
249shapecode_1_g=0.550
250shapecode_1_b=0.500
251shapecode_1_a=1.000
252shapecode_1_r2=0.000
253shapecode_1_g2=0.400
254shapecode_1_b2=0.400
255shapecode_1_a2=0.070
256shapecode_1_border_r=0.300
257shapecode_1_border_g=0.700
258shapecode_1_border_b=0.800
259shapecode_1_border_a=0.400
260shape_1_per_frame1=tex_zoom = q27;
261shapecode_2_enabled=0
262shapecode_2_sides=44
263shapecode_2_additive=0
264shapecode_2_thickOutline=0
265shapecode_2_textured=0
266shapecode_2_num_inst=1
267shapecode_2_x=0.503
268shapecode_2_y=0.500
269shapecode_2_rad=0.03886
270shapecode_2_ang=0.00000
271shapecode_2_tex_ang=0.00000
272shapecode_2_tex_zoom=0.60986
273shapecode_2_r=1.000
274shapecode_2_g=0.100
275shapecode_2_b=0.000
276shapecode_2_a=0.900
277shapecode_2_r2=1.000
278shapecode_2_g2=1.000
279shapecode_2_b2=1.000
280shapecode_2_a2=0.000
281shapecode_2_border_r=0.500
282shapecode_2_border_g=0.500
283shapecode_2_border_b=1.000
284shapecode_2_border_a=0.000
285shape_2_per_frame1=x = int(rand(50))/50;
286shape_2_per_frame2=y = .5;
287shape_2_per_frame3=
288shape_2_per_frame4=r = .4;
289shape_2_per_frame5=g = .6;
290shape_2_per_frame6=b = 1;
291shape_2_per_frame7=r2 = r;
292shape_2_per_frame8=g2 = g;
293shape_2_per_frame9=b2 = b;
294shape_2_per_frame10=
295shape_2_per_frame11=a2 = min(q21/2 ,1)/2;
296shape_2_per_frame12=
297shape_2_per_frame13=a = 0;
298shape_2_per_frame14=
299shape_2_per_frame15=rad = a2 * (.1+abs(x-.5))/2 ;
300shapecode_3_enabled=0
301shapecode_3_sides=4
302shapecode_3_additive=0
303shapecode_3_thickOutline=1
304shapecode_3_textured=1
305shapecode_3_num_inst=1
306shapecode_3_x=0.260
307shapecode_3_y=0.760
308shapecode_3_rad=0.39478
309shapecode_3_ang=0.00000
310shapecode_3_tex_ang=0.00000
311shapecode_3_tex_zoom=0.49981
312shapecode_3_r=1.000
313shapecode_3_g=1.000
314shapecode_3_b=1.000
315shapecode_3_a=1.000
316shapecode_3_r2=1.000
317shapecode_3_g2=1.000
318shapecode_3_b2=1.000
319shapecode_3_a2=0.800
320shapecode_3_border_r=0.200
321shapecode_3_border_g=0.700
322shapecode_3_border_b=0.500
323shapecode_3_border_a=1.000
324shape_3_per_frame1=tex_zoom = q27/2;
325per_frame_1=dec_med = pow (0.9, 30/fps);
326per_frame_2=dec_slow = pow (0.9, 30/fps);
327per_frame_3=beat = max (max (bass, mid), treb);
328per_frame_4=avg = avg*dec_slow + beat*(1-dec_slow);
329per_frame_5=is_beat = above(beat, .1+avg+peak) * above (time, t0+.2);
330per_frame_6=t0 = is_beat*time + (1-is_beat)*t0;
331per_frame_7=peak = is_beat * beat + (1-is_beat)*peak*dec_med;
332per_frame_8=index = (index + is_beat) %16;
333per_frame_9=index2 = (index2 + is_beat*bnot(index))%5;
334per_frame_10=monitor = index2;
335per_frame_11=
336per_frame_12=q20 = avg;
337per_frame_13=q21 = beat;
338per_frame_14=q22 = peak;
339per_frame_15=q23 = index;
340per_frame_16=q24 = is_beat;
341per_frame_17=q26 = bass + mid + treb;
342per_frame_18=q27 = index;
343per_frame_19=q28 = index2;
344per_frame_20=
345per_frame_21=k1 = is_beat*equal(index%2,0);
346per_frame_22=p1 = k1*(p1+1) + (1-k1)*p1;
347per_frame_23=p2 = dec_med * p2+ (1-dec_med)*p1;
348per_frame_24=rott_ = p2 * 3.1416/4;
349per_frame_25=
350per_frame_26=rott = rott + .2*30/fps*q2;
351per_frame_27=
352per_frame_28=
353per_frame_29=q1 = cos(rott);
354per_frame_30=q2 = sin(rott);
355per_frame_31=q3 = -q2;
356per_frame_32=q4 = q1;
357per_frame_33=
358per_frame_34=ran = bnot(q24)*ran + q24 * (int(rand(50))-24);
359per_frame_35=tran = tan(ran);
360per_frame_36=tran = max(tran,-5);
361per_frame_37=tran = min(tran,5);
362per_frame_38=
363per_frame_39=trel = trel + .02*30/fps*tran+q24;
364per_frame_40=q5 = cos(trel);
365per_frame_41=q6 = sin(trel);
366per_frame_42=q7 = -q6;
367per_frame_43=q8 = q5;
368per_frame_44=
369per_frame_45=movex = movex*dec_slow + .1*sin(rott)*30/fps;
370per_frame_46=q9 = movex;
371per_frame_47=
372per_frame_48=spd = spd*bnot(q24) + q26*q24;
373per_frame_49=movez = movez + .005*30/fps*spd;
374per_frame_50=q30 = movez;
375per_frame_51=//q30 = .3* (sin(time/45) + 1.5);
376per_frame_52=
377per_frame_53=mv_x = 20;
378per_frame_54=mv_y = 15;
379per_frame_55=mv_a = .1;
380per_frame_56=mv_l = 0;
381per_frame_57=
382per_frame_58=q18 = sin(time/7);
383per_frame_59=q19 = sin(time/11);
384per_frame_60=
385per_frame_61=q32 = pow(0.98, 30/fps); //fade
386per_frame_62=
387per_frame_63=
388per_frame_64=// a
389per_frame_65=scale = 8;
390per_frame_66=angle = -time*0.2;
391per_frame_67=
392per_frame_68=q1 = scale*cos(angle); // the real part
393per_frame_69=q2 = scale*sin(angle); // the imaginary part
394per_frame_70=
395per_frame_71=// b
396per_frame_72=
397per_frame_73=q3 = 0; // the real part
398per_frame_74=q4 = 0.3; // the imaginary part
399per_frame_75=
400per_frame_76=// c
401per_frame_77=scale = 0.8;
402per_frame_78=angle = time*0.2;
403per_frame_79=
404per_frame_80=q5 = scale*cos(angle); // the real part
405per_frame_81=q6 = scale*sin(angle); // the imaginary part
406per_frame_82=
407per_frame_83=// d
408per_frame_84=q7 = -0.25; // the real part
409per_frame_85=q8 = 0.2; // the imaginary part
410per_frame_86=
411per_frame_87=q11 = 1/asin(1);
412warp_1=`sampler sampler_worms;
413warp_2=`float3 color, mus;
414warp_3=`float dx,dy;
415warp_4=`shader_body {
416warp_5=`float2 uv1 = (uv-.5) * aspect.xy;
417warp_6=`
418warp_7=`
419warp_8=`float2 uv6 = uv1;
420warp_9=`float z = .2*q28*length(uv1)+rand_frame * 64;
421warp_10=`float2 d = normalize(uv1);
422warp_11=`float clp = .5+rand_preset*10;
423warp_12=`float2 rs = clamp(tan(z)*d,-clp,clp);
424warp_13=`uv += rs/20;
425warp_14=`
426warp_15=`
427warp_16=`uv6 = .4*sin(uv1*2*(4+q28));
428warp_17=`mus = .06/(length(uv6));
429warp_18=`mus *= roam_cos;
430warp_19=`
431warp_20=`float3 blur = GetBlur1(frac(uv));
432warp_21=`
433warp_22=`float3 crisp= tex2D(sampler_main,uv);
434warp_23=`
435warp_24=`float3 ret1 = crisp - blur*.04 + .15*mus;
436warp_25=`
437warp_26=`//ret1 = lerp(ret1,ret1.gbr,lum(ret1));
438warp_27=`q25 = q24+.01;
439warp_28=`ret = q25*(ret1-.02)*.98 + (1-q25)* (GetPixel(uv_orig)-.0015);
440warp_29=`}
441comp_1=`sampler sampler_sunrise;
442comp_2=`
443comp_3=`float2 factorA, factorB, product;
444comp_4=`float2 numerator, denominator, fraction;
445comp_5=`
446comp_6=`shader_body
447comp_7=`{
448comp_8=`float2 uvo = uv;
449comp_9=`//*** Flexis Moebius transformation code
450comp_10=`
451comp_11=`uv = (uv-0.5)*aspect.xy*2;
452comp_12=`factorA = uv;
453comp_13=`factorB = float2(q1,q2);
454comp_14=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, // the products real part
455comp_15=` factorA.x*factorB.y + factorA.y*factorB.x); // the products imaginary part
456comp_16=`
457comp_17=`numerator = product + float2(q3,q4);
458comp_18=`
459comp_19=`factorA = uv;
460comp_20=`factorB = float2(q5,q6);
461comp_21=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, // the products real part
462comp_22=` factorA.x*factorB.y + factorA.y*factorB.x); // the products imaginary part
463comp_23=`
464comp_24=`
465comp_25=`denominator = product + float2(q7,q8);
466comp_26=`
467comp_27=`fraction = float2( numerator.x*denominator.x + numerator.y*denominator.y, // the fractions real part
468comp_28=` numerator.y*denominator.x - numerator.x*denominator.y)/ // the fractions imaginary part
469comp_29=` (denominator.x*denominator.x + denominator.y*denominator.y);
470comp_30=`
471comp_31=`uv = fraction*0.5;
472comp_32=`
473comp_33=`// ***
474comp_34=`
475comp_35=`
476comp_36=`// *** Flexis logarithmic spiral code
477comp_37=`
478comp_38=`float t = -time*0.5; // set velocity here
479comp_39=`float2 c = (uv-0.5);
480comp_40=`float1 ang_hq = -atan2(c.x,c.y);
481comp_41=`// q11 = 1/asin(1); from the init section
482comp_42=`float2 spiral = float2(ang_hq*q11*3+t,aspect.w*log(length(c))+ang_hq*q11-t);
483comp_43=`spiral = 0.5 + (0.5 - abs( frac( spiral * 0.5 ) * 2.0 - 1.0 ))*0.95; // mirror
484comp_44=`uv = spiral;
485comp_45=`
486comp_46=`// ***
487comp_47=`
488comp_48=`ret = tex2d(sampler_main,spiral);
489comp_49=`//ret = GetPixel(uvo);
490comp_50=`}